<?php
/**
 * 后台错误控制器
 * @package  htdocs
 * @subpackage  quanliadmin
 * @author   allen.qiang
 */

require('core/shop.php');

/**
 * 记录选择的管理功能
 */
$nav_name = $G_PGLOB->get_cookie_info('nav_name');
if (!$nav_name) {
    $nav_name = 'b2c';
    $G_PGLOB->set_cookie_info('nav_name', $nav_name, 8640000);
}
$G_PGLOB->smarty->assign('nav_name', $nav_name);



$msg = $G_PGLOB->sessionCache_get('quanliadmin_ERROR_MSG');
if ($msg) {
    $G_PGLOB->smarty->assign('msg', $msg);
}

/**
 * addded by zhoulaiyin 在页面上显示当前登录用户名
 */
$userName = $G_PGLOB->currentUserName;
$G_PGLOB->smarty->assign('userName', $userName);


$G_PGLOB->smarty->display('comm/error.tpl');



